package com.tedu._04mybatis.mapper;

import com.tedu._04mybatis.pojo.*;
import org.apache.ibatis.annotations.*;
import org.springframework.beans.factory.annotation.Value;

import java.util.List;

@Mapper
public interface WeiboMapper {
    int insertWeibo1(Weibo weibo);

    int deleteWeiboById(Integer id);

    int updateWeiboById(Weibo weibo);

    Weibo selectWeiboById(Integer id);

    List<Weibo> selectAllWeibo();

    WeiboVO1 selectWeiboById12(Integer id);

    List<WeiboVO2> selectAllWeiboVO2();

    int dynamicUpdateWeibo(Weibo weibo);

    int dynamicDeleteWeibo(Integer[] ids);

    int dynamicDeleteWeibo2(List<Integer> ids);

    int countWeibo();

    WeiboVO3 selectWeiboVO3ById(Integer id);

    List<WeiboVO3> selectAllWeiboVO3();

    WeiboVO4 selectWeiboCommentById(Integer id);


}
